from appium import webdriver	# 引入appium
from time import sleep	# 引入等待时间


def test():

    desired_caps = {
        "platformName":"Android",
        "deviceName":"UYT7N18621001193",
        "platformName":"9",
        "appPackage" : "com.sensetime.iva.senseface",
        "appActivity" : "com.sensetime.iva.ui.login.LoginActivity"

    }

    driver = webdriver.Remote("http://localhost:4723/wd/hub", desired_caps)
    driver.find_element_by_name('7').click()
    driver.find_element_by_name('+').click()
    print("11111")
    driver.find_element_by_name('8').click()
    driver.find_element_by_name('=').click()
    sleep(2)
    driver.quit()


if __name__ == '__main__':
    test()

